package com.xj.common.bussiness.machin.entity;

import java.io.Serializable;
import java.util.Date;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;

/**
 * <p>
 * 
 * </p>
 *
 * @author Mars
 * @since 2017-08-24
 */
@TableName("yz_machin_info")
public class YzMachinInfo extends Model<YzMachinInfo> {

    private static final long serialVersionUID = 1L;

    
    
    private Integer id;
    @TableField(value="user_id")
    private Integer userId;
    @TableField(value="equipment_num")
    private String equipmentNum;
    @TableField(value="equipment_type")
    private String equipmentType;
    private String brands;	
    private String color;
    @TableField(value="equipment_model")
    private String equipmentModel;
    @TableField(value="factory_date")
    private Date factoryDate;
    @TableField(value="engine_model")
    private String engineModel;
    @TableField(value="engine_power")
    private String enginePower;
    @TableField(value="purchase_date")
    private Date purchaseDate;
    @TableField(value="engine_plate_num")
    private String enginePlateNum;
    @TableField(value="brand_belong_address")
    private String brandBelongAddress;
    @TableField(value="equipment_origin")
    private String equipmentOrigin;
    @TableField(value="walk_way")
    private String walkWay;
    @TableField(value="work_day_time")
    private String workDayTime;
    @TableField(value="fuel_type")
    private String fuelType;
    @TableField(value="exhaust_emission")
    private String exhaustEmission;
    @TableField(value="equipment_quality")
    private String equipmentQuality;
    @TableField(value="factory_number")
    private String factoryNumber;
    @TableField(value="imgs_url")
    private String equipmentImgsUrl;
    
    
	public Integer getUserId() {
		return userId;
	}


	public void setUserId(Integer userId) {
		this.userId = userId;
	}


	public Integer getId() {
		return id;
	}


	public void setId(Integer id) {
		this.id = id;
	}


	public String getEquipmentNum() {
		return equipmentNum;
	}


	public void setEquipmentNum(String equipmentNum) {
		this.equipmentNum = equipmentNum;
	}


	public String getEquipmentType() {
		return equipmentType;
	}


	public void setEquipmentType(String equipmentType) {
		this.equipmentType = equipmentType;
	}


	public String getBrands() {
		return brands;
	}


	public void setBrands(String brands) {
		this.brands = brands;
	}


	public String getColor() {
		return color;
	}


	public void setColor(String color) {
		this.color = color;
	}


	public String getEquipmentModel() {
		return equipmentModel;
	}


	public void setEquipmentModel(String equipmentModel) {
		this.equipmentModel = equipmentModel;
	}

	@JsonFormat(pattern = "yyyy-MM-dd")
	public Date getFactoryDate() {
		return factoryDate;
	}


	public void setFactoryDate(Date factoryDate) {
		this.factoryDate = factoryDate;
	}


	public String getEngineModel() {
		return engineModel;
	}


	public void setEngineModel(String engineModel) {
		this.engineModel = engineModel;
	}


	public String getEnginePower() {
		return enginePower;
	}


	public void setEnginePower(String enginePower) {
		this.enginePower = enginePower;
	}


	

	@JsonFormat(pattern = "yyyy-MM-dd")
	public Date getPurchaseDate() {
		return purchaseDate;
	}


	public void setPurchaseDate(Date purchaseDate) {
		this.purchaseDate = purchaseDate;
	}


	public String getEnginePlateNum() {
		return enginePlateNum;
	}


	public void setEnginePlateNum(String enginePlateNum) {
		this.enginePlateNum = enginePlateNum;
	}


	public String getBrandBelongAddress() {
		return brandBelongAddress;
	}


	public void setBrandBelongAddress(String brandBelongAddress) {
		this.brandBelongAddress = brandBelongAddress;
	}


	public String getEquipmentOrigin() {
		return equipmentOrigin;
	}


	public void setEquipmentOrigin(String equipmentOrigin) {
		this.equipmentOrigin = equipmentOrigin;
	}


	public String getWalkWay() {
		return walkWay;
	}


	public void setWalkWay(String walkWay) {
		this.walkWay = walkWay;
	}


	public String getWorkDayTime() {
		return workDayTime;
	}


	public void setWorkDayTime(String workDayTime) {
		this.workDayTime = workDayTime;
	}


	public String getFuelType() {
		return fuelType;
	}


	public void setFuelType(String fuelType) {
		this.fuelType = fuelType;
	}


	public String getExhaustEmission() {
		return exhaustEmission;
	}


	public void setExhaustEmission(String exhaustEmission) {
		this.exhaustEmission = exhaustEmission;
	}


	public String getEquipmentQuality() {
		return equipmentQuality;
	}


	public void setEquipmentQuality(String equipmentQuality) {
		this.equipmentQuality = equipmentQuality;
	}


	public String getFactoryNumber() {
		return factoryNumber;
	}


	public void setFactoryNumber(String factoryNumber) {
		this.factoryNumber = factoryNumber;
	}


	


	public String getEquipmentImgsUrl() {
		return equipmentImgsUrl;
	}


	public void setEquipmentImgsUrl(String equipmentImgsUrl) {
		this.equipmentImgsUrl = equipmentImgsUrl;
	}


	@Override
	protected Serializable pkVal() {
		return this.equipmentNum;
	}

}
